package fr.umlv.m2.jee.pmlv.service.cursus;

import java.io.Serializable;
import java.util.List;

import fr.umlv.m2.jee.pmlv.persistence.cursus.Cursus;
import fr.umlv.m2.jee.pmlv.persistence.cursus.Specialty;
import java.util.HashSet;
import java.util.Set;

public class DisplayCursus implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Cursus cursus;
	
	
	public DisplayCursus(Cursus cursus) {
		this.cursus = cursus;
	}


	/**
	 * Gets the name of the cursus.
	 * @return the name of the cursus.
	 */
	public String getName() {
		return cursus.getName();
	}

	/**
	 * Sets the name of the cursus.
	 * @param name the name that is to be name of the cursus.
	 */
	public void setName(String name) {
		cursus.setName(name);
	}

	/**
	 * Returns a description of the cursus.
	 * @return a description of the cursus.
	 */
	public String getDescription() {
		return cursus.getDescription();
	}
	
	/**
	 * Sets the description of the cursus.
	 * @param description the string that is to be the description
	 * of the cursus.
	 * 
	 */
	public void setDescription(String description) {
		cursus.setDescription(description);
	}
	

	/**
	 * Sets the list of Specialty of the cursus.
	 * @param specialties the list that is to bet the set of {@link Specialty} of the
	 * 		  core
	 */
	public void setSpecialties(Set<Specialty> specialties) {
		cursus.setSpecialties(specialties);
	}

	/**
	 * Returns the list of Specialty of the cursus.
	 * @return the list of {@link Specialty} of the cursus.
	 */
	public Set<Specialty> getSpecialties() {
		return cursus.getSpecialties();
	}

}
